#include "laurin-access-point.h"
#include "laurin-utils.h"


LaurinAccessPoint::LaurinAccessPoint(u_int8_t* bssid) : Laurin80211Station(bssid) {}


LaurinAccessPoint::LaurinAccessPoint(const LaurinAccessPoint& accessPoint) : Laurin80211Station(accessPoint)
{
	_ssid = Glib::ustring(accessPoint._ssid);
	_encrypted = accessPoint._encrypted;
	_channel = accessPoint._channel;
}


LaurinAccessPoint::~LaurinAccessPoint(){}



Glib::ustring LaurinAccessPoint::getSSID() const
{
	return _ssid;
}


void LaurinAccessPoint::setSSID(const Glib::ustring& ssid)
{
	_ssid = ssid;
}


u_int8_t* LaurinAccessPoint::getBSSID() const
{
	return getMAC();
}


bool LaurinAccessPoint::isNetworkEncrypted() const
{
	return _encrypted;
}


void LaurinAccessPoint::setNetworkEncrypted(bool value)
{
	_encrypted = true;
}


int LaurinAccessPoint::getInterval() const
{
	return _interval;
}


void LaurinAccessPoint::setInterval(int interval)
{
	_interval = interval;
}
